<template>
  <h1>轮播图组件</h1>
  <el-carousel style="width: 380px" trigger="click"><!--trigger="click":点击时切换-->
    <el-carousel-item>
      <img src="carousel1.jpg" width="100%">
    </el-carousel-item>
    <el-carousel-item>
      <img src="carousel2.jpg" width="100%">
    </el-carousel-item>
    <el-carousel-item>
      <img src="carousel3.jpg" width="100%">
    </el-carousel-item>
    <el-carousel-item>
      <img src="carousel4.jpg" width="100%">
    </el-carousel-item>
  </el-carousel>

  <el-carousel style="width: 900px" type="card">
    <el-carousel-item>
      <img src="carousel1.jpg" width="100%">
    </el-carousel-item>
    <el-carousel-item>
      <img src="carousel2.jpg" width="100%">
    </el-carousel-item>
    <el-carousel-item>
      <img src="carousel3.jpg" width="100%">
    </el-carousel-item>
    <el-carousel-item>
      <img src="carousel4.jpg" width="100%">
    </el-carousel-item>
  </el-carousel>
</template>
<script setup>

</script>


<style scoped>

</style>